package Day14;

import com.sun.tools.javac.Main;

public class workText {
    public static void main(String[] args) {
        Teacher t1 = new Teacher(002,"阿伟");
        System.out.println(t1.getId() +","+ t1.getName());
        t1.work();
        System.out.println();
        Lecturer l1 = new Lecturer(001,"张三");
        System.out.println(l1.getId() +","+ l1.getName());
        l1.work();
        System.out.println();

        Tutor tt2 = new Tutor(003,"夏雨");
        System.out.println(tt2.getId() +","+ tt2.getName());
        tt2.work();
        System.out.println();

        AdminStaff a1 = new AdminStaff(004,"下周");
        System.out.println(a1.getId() +","+ a1.getName());
        a1.work();
        System.out.println();

        Maintainer m1 = new Maintainer(005,"小玉");
        System.out.println(m1.getId() +","+ m1.getName());
        m1.work();
        System.out.println();

        Buyer b1 = new Buyer(006,"小票哼");
        System.out.println(b1.getId() +","+ b1.getName());
        b1.work();
        System.out.println();
    }
}
